package com.mxpio.erp.common.sales.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.mxpio.erp.common.jpa.model.NoticeLine;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_SALES_SN_LINE")
@Schema(description="发货通知单行")
public class ShippingNoticeLine extends NoticeLine {

    private static final long serialVersionUID = 1L;

    @Column(name = "SPECIFICATION_")
    @Schema(description = "规格型号")
    private String specification ;

    @Column(name = "ITEM_NAME_")
    @Schema(description = "物料名称")
    private String itemName ;

    @Column(name = "UNIT_")
    @Schema(description = "单位")
    private String unit;

    @Column(name = "MAX_QUANTITY_")
    @Schema(description = "最大发货数")
    private BigDecimal maxQuantity;

    @Column(name = "UNTAX_PRICE_")
    @Schema(description = "无税单价")
    private BigDecimal untaxPrice;

    @Column(name = "TAX_PRICE_")
    @Schema(description = "含税单价")
    private BigDecimal taxPrice;

    @Column(name = "UNTAX_AMOUNT_")
    @Schema(description = "无税金额")
    private BigDecimal untaxAmount;

    @Column(name = "TAX_")
    @Schema(description = "税额")
    private BigDecimal tax;

    @Column(name = "TOTAL_AMOUNT")
    @Schema(description = "价税合计")
    private BigDecimal totalAmount;

    @Column(name = "TAX_RATE_")
    @Schema(description = "税率")
    private BigDecimal taxRate ;

    @Column(name = "MEMO_")
    @Schema(description = "备注")
    private String memo;
}
